﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace FloorPlan
{
    public partial class ChildWindow1 : ChildWindow
    {
        private wssendfeedbackaboutstore _dcwfeedback;

        public ChildWindow1()
        {
            InitializeComponent();

            this._dcwfeedback = new wssendfeedbackaboutstore();

            this.SetupEventHandlers();
        }

        private void SetupEventHandlers()
        {
            this.OKButton.Click += new RoutedEventHandler(OKButton_Click);
            this.thumbnail.Loaded += new RoutedEventHandler(thumbnail_Loaded);

            this.HyperlinkButton1.Click += new RoutedEventHandler(HyperlinkButton1_Click);
        }

        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }

        private void HyperlinkButton1_Click(object sender, RoutedEventArgs e)
        {
            this._dcwfeedback.txtfromemail.Text = "";
            this._dcwfeedback.txttoemail.Text = this.txtshopname.Text;
            this._dcwfeedback.HasCloseButton = false;
            this._dcwfeedback.Show();
        }

        private void thumbnail_Loaded(object sender, RoutedEventArgs e)
        {
            this.testsome1.Begin();
        }

    }
}

